package blockingqueue;

import java.util.concurrent.ArrayBlockingQueue;

public class BlockingQueueTest {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<Object> friends = new ArrayBlockingQueue<>(16);
        friends.put(new Friend("8-12","anyone","男"));
        friends.put(new Friend("8-12","anyone","女"));
        friends.put(new Friend("12-18","anyone","男"));
        friends.put(new Friend("12-18","anyone","女"));
        friends.put(new Friend("18-25","anyone","男"));
        friends.put(new Friend("18-25","anyone","男"));
        friends.put(new Friend("18-25","anyone","男"));
        friends.put(new Friend("18-25","anyone","男"));
        friends.put(new Friend("18-25","anyone","女"));
        friends.put(new Friend("18-25","anyone","女"));
        friends.put(new Friend("25-45","anyone","男"));
        friends.put(new Friend("25-45","anyone","女"));
        friends.put(new Friend("45-60","anyone","男"));
        friends.put(new Friend("45-60","anyone","女"));
        friends.put(new Friend("60-100","anyone","男"));
        friends.put(new Friend("60-100","anyone","女"));

    }
}
